/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.awt.event.ActionEvent;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import view.adPlanEstudio.CorrelatividadesPanel;
/**
 *
 * @author Nelson
 */
public class ControladorCorrelatividades extends Controlador{
    private CorrelatividadesPanel Correlatividad;
    
    public ControladorCorrelatividades(JPanel padre) {
        this.Correlatividad = (CorrelatividadesPanel) padre;
    }

    public enum Accion {
        BotonDescartar,
        BotonGuardar,
        }

    public void iniciar( ) {
   
        
        //boton
        //this.Correlatividad.BotonDescartar.setActionCommand("BotonDescartar");
        //this.Correlatividad.BotonDescartar.addActionListener(this);
        
    }

    /**
     * Gestion de accciones
     */
    public void actionPerformed(ActionEvent e) {

        switch (ControladorCorrelatividades.Accion.valueOf(e.getActionCommand())) {
     
            case BotonDescartar:
                this.Correlatividad.removeAll();
                this.Correlatividad.updateUI();
                break;
        }//-> fin swith
    }
}
